//TIP 要<b>运行</b>代码，请按 <shortcut actionId="Run"/> 或
// 点击间距中的 <icon src="AllIcons.Actions.Execute"/> 图标。
public class Main {
    public static void main(String[] args) {
mother m= new mother();
m.setAge(30);
m.height=170;
m.name="张三";
m.weight=50;
        System.out.println(m.toString());
        Daughter d= new Daughter();
        d.name="李四";
        d.age=18;
        d.height=170;
        d.hobby ="旅游";
        d.weight =50;
        System.out.println(d.toString());
    }

}